package my.edu.model.bills.sales.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("logistics_service")
public class LogisticsService {//物流服务
    @TableId(type = IdType.AUTO)
    private Long id;
    private String orderNo;
    private String logisticsOrderStatus;
    private String deliveryMethod;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate orderDate;
    private Long sourceOrderId;
    private String sourceOrderNo;
    private Long senderAddressId;
    private String senderName;
    private String senderPhone;
    private String senderAddress;
    private Long recipientAddressId;
    private String recipientName;
    private String recipientPhone;
    private String recipientAddress;
    private Integer isTrackingSubscription;
    private Integer isAudited;
    private String logisticsCompany;
    private String logisticsNo;
    private String itemName;
    private String logisticsStatus;
    private BigDecimal freightSettlement;
    private String freightPaymentStatus;
    private BigDecimal actualFreight;
    private Integer deliveryQuantity;
    @TableField(fill = FieldFill.INSERT)
    private Long createdBy;
    @TableField(fill = FieldFill.INSERT)
    private String createdName;
    private Long auditorId;
    private String auditorName;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.UPDATE)
    private Long updatedBy;
}